package com.little.loan.service.impl;

import com.little.loan.dao.UserDao;
import com.little.loan.entity.User;
import com.little.loan.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by 20259174 on 2018/2/8.
 */
@Service
@Transactional
public class UserServiceImpl implements UserService{

    @Autowired
    private UserDao userDao;

    @Override
    public User getUserById(int id) {
        return userDao.selectByPrimaryKey(id);
    }
}
